import request from '@/utils/request'

//查
export function getStudent(pageNumber,pageSize,query){
  return request({
    url:`/student/${pageNumber}/${pageSize}`,
    method:"get",
    headers: {
      isToken: true
    },
    params: query
  })
}

//增
export function save(data){
  return request({
    url:`/student`,
    method:"post",
    headers: {
      isToken: true
    },
    data: data
  })
}


//删
export function deleteById(id){
  return request({
    url:`/student/${id}`,
    method:"delete",
    headers: {
      isToken: true
    }
  })
}

//改
export function updateById(data){
  return request({
    url:`/student`,
    method:"put",
    headers: {
      isToken: true
    },
    data:data
  })
}



